public class TriggerTest {
    @isTest
    static void testContact() {
        Contact c = new Contact();
        c.lastname = 'this is a test';
        insert(c);
    }
    
    @isTest
    static void testHousehold() {
        ONEN_Household__c c = new ONEN_Household__c();
        insert(c);
    }
    
    @isTest
    static void testOpportunityContactRole() {
    	Opportunity oppt = new Opportunity();
    	oppt.Name = 'test';
    	oppt.StageName = 'posted';
    	oppt.CloseDate = date.today();
        insert(oppt);
    }
    
       @isTest
    static void testHouseholdSynch() {
        ONEN_Household__c h = new ONEN_Household__c();
        h.MailingState__c = 'CA';
        insert(h);
        Contact c = new Contact();
        c.lastname = 'apellido';
        c.ONEN_Household__c = h.id;
        insert(c);
        h.MailingStreet__c = 'changed';
        update(h);
    }
    
}